<template>
  <van-cell center :title="title" :label="label" >
    <!-- 使用 right-icon 插槽来自定义右侧图标 -->
    <template #right-icon>
      <van-icon name="play-circle-o"  size="0.8rem" @click="playFn"/>
    </template>
  </van-cell>
</template>

<script>
export default {
  props: {
    title: String,
    label: String,
    id: [String, Number]
  },
  methods: {
    // 跳转播放音乐页面
    playFn(){
      this.$router.push({
        path: '/play',
        query: {
          id: this.id
        }
      })
    }
  }
}
</script>

<style>

</style>